<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script type="text/javascript">
    var  naem=prompt("请输入名字")
    var  age=prompt("请输入年龄")
    var  dizi=prompt("请输入家乡")
        alert("我是"+naem+",今年"+age+"岁了，我来自"+dizi)
</script>
</body>
</html>